package com.lanou.utp.service.impl;

import com.lanou.utp.entity.School;
import com.lanou.utp.mapper.SchoolMapper;
import com.lanou.utp.service.SchoolService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

/**
 * @author MaQingYun
 */
@Service
public class SchoolServiceImpl implements SchoolService {

    @Resource
    private SchoolMapper schoolMapper;

    @Override
    public School getSchool() {
        return this.schoolMapper.getSchool();
    }

    @Override
    public void updateSchoolInfo(School school) {
        this.schoolMapper.updateSchoolInfo(school);
    }


}
